module main

import mysql

fn main() {
  mut conn := mysql.Connection{
    host: "localhost"
    port: 3306
    username: "root"
    password: "root"
    dbname: "go_demo"
  }
  conn.connect()?
  res := conn.query("select * from user")?


  mut arr :=  []map[string]string
  for row in res.maps() {
    arr << row
  }
  conn.close()

  println(arr)
}
